STEP 9: Remember that function we made earlier? Let's call it inside our while loop and begin building it out.

  • In , drag Call w/ Parameter into Variable indented 8 spaces inside your while loop.
  • Change the variable to the left of the = sign from my_var to response. This will store the user's response.
  • Then, change my_function to get_user_input and my_parameter to text_sprite.
  • Press Run and then Stop to continue on to the next activity.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)